<template>
	<view>
		<view  @click="handleClick">你好</view>	
		<view class="iconfont icon-54"></view>
	</view>
</template>

<script>
import { getUserProfile,login} from "@/utils/asyncWx.js"
	export default {
		async created() {
			/* let result = await this.$request({
				url:"home/swiperdata"
			});
			console.log(result); */
			// await getUserProfile();
			
		},
		data() {
			return {
				href: 'https://uniapp.dcloud.io/component/README?id=uniui'
			}
		},
		methods: {
			handleClick: async function() {
				// let res = await getUserProfile();
				let res = await login();
				console.log(1,res);
			}
		}
	}
</script>

<style>
	@import url("/static/styles/iconfont.css");
		/*每个页面公共css */
		image{
			width: 100%;
		}
		page,navigator,view,button,swiper,swiper-item,text{
			padding:0;
			margin: 0;
			box-sizing: border-box;
			--themeColor:#eb4450;
		}
</style>
